package cn.wolfcode.car.business.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;


@Data
@AllArgsConstructor
@NoArgsConstructor
public class Salary {
    /** id*/
    private Long id;

    /** 员工姓名*/
    private String name;

    /** 基础工资*/
    private BigDecimal basicSalary;

    /** 绩效工资*/
    private BigDecimal meritSalary;

    /** 扣款*/
    private BigDecimal deductMoney;

    /** 实际发放*/
    private BigDecimal realSalary;

    /** 发放方式*/
    private Integer paySource;

    /** 备注*/
    private String info;

    /**
     * 操作时间
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm")    //前到后
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")  //后到前
    private Date date;

    public static final Integer PAY_SOURCE_BANKCARD = 0;//银行卡
    public static final Integer PAY_SOURCE_WECHAT = 1;//微信
    public static final Integer PAY_SOURCE_ALIPAY = 2;//支付宝

}